export default {
  // Global page headers: https://go.nuxtjs.dev/config-head
  head: {
    title: "闲云旅游网",
    htmlAttrs: {
      lang: "en"
    },
    meta: [
      { charset: "utf-8" },
      { name: "viewport", content: "width=device-width, initial-scale=1" },
      { hid: "description", name: "description", content: "" }
    ],
    link: [
      { rel: "icon", type: "image/x-icon", href: "/favicon.ico" },
      {
        rel: "stylesheet",
        type: "text/css",
        href: "//at.alicdn.com/t/font_1168872_ehvuah8v57g.css"
      } // 新增全局字体样式
    ],
    // 引入转换 md - html 的cdn
    script: [
      {src: 'https://cdn.bootcdn.net/ajax/libs/showdown/1.9.1/showdown.min.js'},
    ]
  },

  // Global CSS: https://go.nuxtjs.dev/config-css
  css: [
    "element-ui/lib/theme-chalk/index.css",
    "assets/main.css", // 新增自定义的页面过渡样式（文件来自3.4.1）
    { src: "mavon-editor/dist/css/index.css" }
  ],

  // Plugins to run before rendering page: https://go.nuxtjs.dev/config-plugins
  plugins: [
    "@/plugins/element-ui",
    { src: "@/plugins/localStorage", ssr: false },
    { src: "@/plugins/vue-mavon-editor", ssr: false },
    "@/plugins/axios" // 调用插件
  ],

  // Auto import components: https://go.nuxtjs.dev/config-components
  components: true,

  // Modules for dev and build (recommended): https://go.nuxtjs.dev/config-modules
  buildModules: [],

  // Modules: https://go.nuxtjs.dev/config-modules
  modules: [
    // https://axios.nuxtjs.org/setup
    "@nuxtjs/axios"
  ],

  /*
   ** Axios module configuration
   */
  axios: {
    // See https://github.com/nuxt-community/axios-module#options
    // baseURL: "http://127.0.0.1:1337" // 新增axios默认请求路径
    baseURL: "http://157.122.54.189:9095" // 新增备用地址
  },

  // Build Configuration: https://go.nuxtjs.dev/config-build
  build: {
    transpile: [/^element-ui/]
  }
};
